<?php declare(strict_types=1);

namespace Zyucv7\Components\DataAccess\BaseModel;

use Zyucv7\Core\ORM\Model;
use Zyucv7\Core\Database\Manager as DatabaseManager;

/**
 * 对应台账系统的模型基类
 */
class Idm extends Model {

    /**
     * 重写获取数据库连接
     * @return mixed
     */
    protected function getConnection()
    {
        $config = v7_import(V7_DA_ROOT.'/Config/idm.php');
        $this->db = DatabaseManager::connect($config);
    }
}